- addChildWatch
void addChildWatch(ChildWatch dlg)
Adds a delegate to be notified on the end of the child process.
- addParm
void addParm(string parm)
Adds a parameter to the execution program
- close
void close()
Closes all open streams and child process.
- commandLineSync
int commandLineSync(ChildWatch externalWatch, bool delegate(string) readOutput, bool delegate(string) readError)
Executes a command synchronasly and
optionally calls delegates for sysout, syserr and end of job
- endOfError
bool endOfError()
Undocumented in source. Be warned that the author may not have intended to support it.
- endOfOutput
bool endOfOutput()
Undocumented in source. Be warned that the author may not have intended to support it.
- execAsyncWithPipes
int execAsyncWithPipes(ChildWatch externalWatch, bool delegate(string) readOutput, bool delegate(string) readError)
Executes the prepared process
- getErrorString
string getErrorString()
Undocumented in source. Be warned that the author may not have intended to support it.
- getExitStatus
int getExitStatus()
Undocumented in source. Be warned that the author may not have intended to support it.
- getLastError
string getLastError()
Gets the last error message
- getOutputString
string getOutputString()
Undocumented in source. Be warned that the author may not have intended to support it.
- async
bool async(string workingDirectory, string[] argv, string[] envp, GSpawnFlags flags, GSpawnChildSetupFunc childSetup, void* userData, GPid childPid)
Executes a child program asynchronously.
- asyncWithFds
bool asyncWithFds(string workingDirectory, string[] argv, string[] envp, GSpawnFlags flags, GSpawnChildSetupFunc childSetup, void* userData, GPid childPid, int stdinFd, int stdoutFd, int stderrFd)
Executes a child program asynchronously.
- checkExitStatus
bool checkExitStatus(int waitStatus)
An old name for g_spawn_check_wait_status(), deprecated because its
name is misleading.
- childWatchCallback
void childWatchCallback(int pid, int status, Spawn spawn)
Undocumented in source. Be warned that the author may not have intended to support it.
- closePid
void closePid(GPid pid)
On some platforms, notably Windows, the #GPid type represents a resource
which must be closed to prevent resource leaking. g_spawn_close_pid()
is provided for this purpose. It should be used on all platforms, even
though it doesn't do anything under UNIX.
- commandLineAsync
bool commandLineAsync(string commandLine)
A simple version of g_spawn_async() that parses a command line with
g_shell_parse_argv() and passes it to g_spawn_async().
- commandLineSync
bool commandLineSync(string commandLine, string standardOutput, string standardError, int waitStatus)
A simple version of g_spawn_sync() with little-used parameters
removed, taking a command line instead of an argument vector.
- errorQuark
GQuark errorQuark()
- exitErrorQuark
GQuark exitErrorQuark()
- sync
bool sync(string workingDirectory, string[] argv, string[] envp, GSpawnFlags flags, GSpawnChildSetupFunc childSetup, void* userData, string standardOutput, string standardError, int waitStatus)
Executes a child synchronously (waits for the child to exit before returning).